from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
from gameCMS.main.mains import * 
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
    # Example:
    # (r'^gameCMS/', include('gameCMS.foo.urls')),
    (r'^/?$',main),(r'^reg/',reg),(r'^of/',of),(r'^activate/',ak),(r'^ttt/',start),
    # Uncomment the admin/doc line below to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
       (r'^medias/(?P<path>.*)$', 'django.views.static.serve',
               {'document_root':'/home/boris_z/www/django/gameCMS/gameCMS/media' ,'show_indexes': True}),
    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
)
if settings.DEBUG:
        urlpatterns+= patterns('',
                url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True})
                    )


